import { Injectable } from '@angular/core';

@Injectable()
export class SchemaService { 
  public static creat(opt:any) { 
    if(typeof opt =='object'){
      for(let item in opt){
          this[item] = opt[item]
      }
    }else{
      console.error('Params must be object')
    }
  }

}
